# -*- coding: utf-8 -*-

class IndexController < ApplicationController
  def index
    @title = "HOME"
  end

  def contact
    @title = "お問い合わせ"
  end

  def link
    @title = "リンク集"
  end

  def news
    @title = "新着情報"
  end

  def get_address
    address = Zipcode.where(:zipcode => params[:zipcode]).first
    
    render :text => (address.prefecture_name + address.city_name + address.town_name) if not address.blank?
  end
end
